package com.monitor.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author LX
 * @since 2018-09-05
 */
@TableName("erp_user")
public class ErpUser extends Model<ErpUser> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 客户ID
     */
    @TableField("customer_id")
    private Integer customerId;
    /**
     * 真实姓名
     */
    @TableField("real_name")
    private String realName;
    /**
     * 职务
     */
    @TableField("role_id")
    private Integer roleId;
    /**
     * 密码
     */
    private String password;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 管理分支ID
     */
    @TableField("branch_id")
    private String branchId;
    @TableField("branch_name")
    private String branchName;
    /**
     * 管理客户ID
     */
    @TableField("group_id")
    private String groupId;
    @TableField("group_name")
    private String groupName;
    @TableField("all_action")
    private Integer allAction;
    @TableField("is_first")
    private Integer isFirst;
    @TableField("change_date")
    private String changeDate;
    @TableField("wx")
    private String wx;
      @TableField("qq")
    private String qq;
      @TableField("user_name")
    private String userName;
      @TableField("roles_id")
    private Integer rolesId;
      @TableField("phone")
    private String phone;
    @TableField("e_mail")
      private String eMail;
    private  transient  Integer identify;

    public Integer getIdentify() {
        return identify;
    }

    public void setIdentify(Integer identify) {
        this.identify = identify;
    }

    public String geteMail() {
        return eMail;
    }

    public void seteMail(String eMail) {
        this.eMail = eMail;
    }

    public String getWx() {
        return wx;
    }

    public void setWx(String wx) {
        this.wx = wx;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getRolesId() {
        return rolesId;
    }

    public void setRolesId(Integer rolesId) {
        this.rolesId = rolesId;
    }

    /**
     * 客户昵称
     */
    private  transient  String customerName;
    private  transient ErpCustomer erpCustomer;

    public ErpCustomer getErpCustomer() {
        return erpCustomer;
    }

    public void setErpCustomer(ErpCustomer erpCustomer) {
        this.erpCustomer = erpCustomer;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getBranchId() {
        return branchId;
    }

    public void setBranchId(String branchId) {
        this.branchId = branchId;
    }

    public String getBranchName() {
        return branchName;
    }

    public void setBranchName(String branchName) {
        this.branchName = branchName;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Integer getAllAction() {
        return allAction;
    }

    public void setAllAction(Integer allAction) {
        this.allAction = allAction;
    }

    public Integer getIsFirst() {
        return isFirst;
    }

    public void setIsFirst(Integer isFirst) {
        this.isFirst = isFirst;
    }

    public String getChangeDate() {
        return changeDate;
    }

    public void setChangeDate(String changeDate) {
        this.changeDate = changeDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpUser{" +
        ", id=" + id +
        ", customerId=" + customerId +
        ", realName=" + realName +
        ", roleId=" + roleId +
        ", password=" + password +
        ", status=" + status +
        ", branchId=" + branchId +
        ", branchName=" + branchName +
        ", groupId=" + groupId +
        ", groupName=" + groupName +
        ", allAction=" + allAction +
        ", isFirst=" + isFirst +
        ", changeDate=" + changeDate +
        "}";
    }
}
